<?php get_header();?>
<?php 

$args = array(	
	'child_of'                 => $catobj->cat_ID,	
	'orderby'                  => 'name',
	'order'                    => 'ASC',	
	'pad_counts'               => false ); 
$categories = get_categories( $args );
?>

<h1><?php echo $catobj->name?></h1>

<?php if(!empty($categories)){?>
<div id="category">
	<ul>
			<?php foreach($categories as $cat){?>
			<li><a href="<?php echo home_url('/category/'.$cat->slug)?>"><?php echo $cat->name?></a></li>
			<?php }?>
		
	</ul>
	<div class="cleaner"></div>
</div>						
<?php }?>									
						<?php 
						$i=0;
						while(have_posts()):the_post();						
						$i++;
						?>
						
						<div class="portfolio_box margin_r50">
							<div class="image_wrapper port_img">
								<a href="<?php echo the_permalink()?>" target="_parent">
									<?php the_post_thumbnail(array(200,170),array('alt'=>get_the_title(),'title'=>get_the_title(),'class'=>'imageFix','widthFix'=>200,'heightFix'=>170) );?>
								</a>
							</div>
							
							<div class="port_content">
							<p><?php echo get_the_title()?></p>
							</div>
							<div class="button_01"><a href="<?php echo the_permalink()?>" target="_parent">Visit</a></div>		
						<div class="cleaner"></div>
						</div>
													
						<?php endwhile; ?>
						<?php if(function_exists('wp_pagenavi'))wp_pagenavi();?>
					
<?php get_footer(); ?>